package com.relax.no_xml.config;

import com.relax.no_xml.aop.LogAspects;
import com.relax.no_xml.bean.ImportColor;
import com.relax.no_xml.bean.Person;
import com.relax.no_xml.service.HelloService;
import com.relax.no_xml.service.IgnoreService;
import org.springframework.context.annotation.*;

@Configuration
@ComponentScan(value = "com.relax",excludeFilters =@ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE,value = {IgnoreService.class}) )
//@ComponentScan(value = "com.relax")
@Import(value = ImportColor.class)
@EnableAspectJAutoProxy
public class PqsConfig {

	@Bean
	public Person person(){
		return new Person("zhangsan",12);
	}

	@Bean
	public LogAspects logAspects(){
		return new LogAspects();
	}
}
